<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/static/commons/taglibs.jsp"%>
<%@ include file="/static/commons/meta.jsp"%>
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
 	<title>${title }</title>
	<!--自定义index样式-->
	<link rel="stylesheet" href="${ctx }/static/styles/basic/basic.css"></link>
	<link rel="stylesheet" href="${ctx }/static/styles/edit/box.css"></link>
	<!--js库-->
	<%@ include file="/static/commons/jquery-easyui.jsp" %>
	<script type="text/javascript" src="${ctx}/static/widgets/easyui/plugins/jquery.draggable.js"></script>
	<script type="text/javascript" src="${ctx}/static/widgets/easyui/plugins/jquery.droppable.js"></script>
	<script type="text/javascript" src="${ctx}/static/widgets/easyui/plugins/jquery.tree.js"></script>
	<script type="text/javascript" src="${ctx}/static/scripts/set_select.js"></script>
	<script type="text/javascript" src="${ctx}/static/scripts/WdatePicker/WdatePicker.js"></script>
  </head>
  
  <body style="padding-bottom:8px;">
  		<c:set var="disabled" value=""></c:set>
  		<c:set var="ifSelect" value=""></c:set>
  		<c:if test="${not empty view}">
  			<c:set var="disabled" value="disabled"></c:set>
  			<c:set var="ifSelect" value="false"></c:set>
  		</c:if>
  		<form id="editForm" action="${ctx}/car/save" method="post">
  			<input type="hidden" value="${obj.service_id}" id="serviceId" name="p_serviceId" />
  			<div class="box">
	  			<table cellspacing="0" cellpadding="0">
	  				<tbody>
						<tr>
							<td class="message">
								<p><span>*</span>车牌号：</p>
							</td>
							<td colspan="1">
								<vvise:select id="carNo" name="p_carNo" sqlname="getCar" className="wd170" width="99%"
	  								defval="${obj.car_no}" ifSelect="${ifSelect}" />
							</td>
						</tr>
						<tr>
							<td class="message">
								<p><span>*</span>保养时间：</p>
							</td>
							<td>
								<input type="text" id="serviceDate" name="p_serviceDate" value="${not empty obj.service_date_ ? obj.service_date_ : now }"
									onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false,readOnly:true})"  ${disabled } 
									class="wd170 Wdate" style="width: 100%;" />
							</td>
						</tr>
						<tr>
							<td class="message">
								<p><span>*</span>保养里程(km)：</p>
							</td>
							<td>
								<input type="text" id="serviceMileage" name="p_serviceMileage" value="${obj.service_mileage }"
									class="wd170 " ${disabled } maxLength="20" style="width: 100%;" />
							</td>
						</tr>
						<tr>
							<td class="message">
								<p><span>*</span>保养单位：</p>
							</td>
							<td>
								<input type="text" id="serviceUnit" name="p_serviceUnit" value="${obj.service_unit }"
									class="wd170 " ${disabled } maxLength="20" style="width: 100%;" />
							</td>
						</tr>
						<tr>
							<td class="message">
								<p><span>*</span>保养内容：</p>
							</td>
							<td>
								<input type="text" id="serviceContent" name="p_serviceContent" value="${obj.service_content }"
									class="wd170 " ${disabled } maxLength="20" style="width: 100%;" />
							</td>
						</tr>
						<tr>
							<td class="message">
								<p>下次保养里程(km)：</p>
							</td>
							<td>
								<input type="text" id="nextMileage" name="p_nextMileage" value="${obj.next_mileage }"
									class="wd170 " ${disabled } maxLength="20" style="width: 100%;" />
							</td>
						</tr>
						<tr>
							<td class="message">
								<p><span>*</span>保养人：</p>
							</td>
							<td>
								<input type="text" id="serviceUser" name="p_serviceUser" value="${obj.service_user }"
									class="wd170 " ${disabled } maxLength="20" style="width: 100%;" />
							</td>
						</tr>
						<tr>
							<td class="message">
								<p>备注：</p>
							</td>
							<td>
								<input type="text" id="remark" name="p_remark" value="${obj.remark }"
									class="wd170 " ${disabled } maxLength="20" style="width: 100%;" />
							</td>
						</tr>
					</tbody>
	  			</table>
	  		</div>
        </form>
  </body>
</html>
